/*
 * Licensed under the License, Version 1.0 (the "License");
 * You may obtain a copy of the License at
 *   http://www.heavenick.com/license/License 
 * Copyright information Heavenick to all.
 * Unless the applicable legal requirements or written 
 * consent, can use or around the code, and no warranties 
 * of any kind and state responsibility.
 */
package com.heavenick.core.dao;

import java.util.HashMap;
import java.util.Map;

import javax.sql.DataSource;

import org.apache.ibatis.session.SqlSession;

/**
*
*@author Heavenick
*@version 1.0
*@date 2012-9-20 下午9:17:38
*/
public interface DaoFactory {
	
	final static Map<String,Object> daoCache = new HashMap<String,Object>(); 
	
	/**
	 * dao 工厂
	 * @param daoType
	 * @return
	 */
	public <T> T getDao(Class<T> daoType);
	
	/**
	 * 
	 * @return
	 */
	public SqlSession getSqlSession();
	
	public void setSqlSession(SqlSession sqlSession);
	
	public DataSource getDataSoure();
}